package mydemo.springcloudalibaba.cousumer.order.service;

import mydemo.springcloudalibaba.api.common.entity.CommonResult;
import org.springframework.stereotype.Component;

/**
 * 服务降级处理
 */
@Component
public class PaymentOpenFiegnService_ForHystrixFallback implements PaymentOpenFiegnService_ForHystrix {
    @Override
    public CommonResult getPaymentById_success(Long id) {
        return new CommonResult(444,"Fallback异常处理信息，请稍后再试， /(ToT)/");
    }

    @Override
    public CommonResult getPaymentById_error(Long id) {
        return new CommonResult(444,"Fallback异常处理信息，请稍后再试， /(ToT)/");
    }
}
